<template>
    <div>
        <!-- index -->
        <!-- 轮播图 -->
        <el-carousel indicator-position="outside" style="margin-top: 10px;">
            <el-carousel-item v-for="(item,index) in arrimg" :key="index" style="margin-top: 10px;">
              <!-- <h3>{{ item }}</h3> -->
              <img :src="item.pic" alt="">
            </el-carousel-item>
          </el-carousel>
    </div>
</template>
<script>
export default {
    data() {
        return {
           arrimg:[]
        }
    },
    created() {
        this.http.get('/imgdata.json').then(res=>{
            // console.log(res)
            this.arrimg =res.data.imgdata
        })
    },
}
</script>
<style>
    .el-carousel__item h3 {
      color: #475669;
      font-size: 18px;
      opacity: 0.75;
      line-height: 300px;
      margin: 0;
    }
    
    .el-carousel__item:nth-child(2n) {
      background-color: #99a9bf;
    }
    
    .el-carousel__item:nth-child(2n+1) {
      background-color: #d3dce6;
    }
   
    .el-carousel__item img{
        width: 100%;
        height: 100%;
    }
  </style>